
import { App } from './../../node_modules/@vue/devtools-api/lib/esm/api/app.d';
// 创建一个路由器,并暴露出去
// 引入路由配置文件
import { createRouter, createWebHashHistory } from 'vue-router'
// 引入可能呈现的组件
import person from '@/components/person.vue'
import button from '@/components/button.vue'
// 创建路由器
const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/person',
      component: person
    },
    {
      path: '/table',
      component: () => import('@/components/table.vue')
    },
    {
      path: '/button',
      component: button
    }
  ]
})

export default router
